<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddMpToDeepNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('deep_news', function (Blueprint $table) {
             $table->string('mp_biz')->nullable();
             $table->string('mp_article_mid')->nullable();
             $table->string('mp_sn')->nullable();
             $table->string('mp_idx')->nullable();
             $table->integer('views')->default(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('deep_news', function (Blueprint $table) {
             $table->dropColumn(['mp_biz','mp_article_mid','mp_sn','mp_idx','views']);
        });
    }
}
